package com.haiheng.common.bean

/**
 *
 * @Des:
 * @Author: hwz
 * @Date:2023/5/5 0005
 * @Version: 1.0
 */
data class ScheduledTasksBean(
    var objectDeviceId: String = "",
    var commandName: String = "",
    var serviceId: String = "",
    var paras: Any? = Any(),
    var services: List<ScheduledTaskService> = listOf()
)

data class ScheduledTaskService(
    var properties: List<ScheduledTaskProperty> = listOf(),
    var serviceId: String = ""
)

data class ScheduledTaskProperty(
    var componentType: Int = 0,
    var content: ScheduledTaskContent = ScheduledTaskContent(),
    var machineUuid: String = ""

)

data class ScheduledTaskContent(
    var jobList: List<ScheduledTaskJob> = listOf()
)

data class ScheduledTaskJob(
    var cron: String = "",// "cron": "0 30 8 ? * 2,4,6", //每周1，3，5 早上8:30触发   "cron": "0 0 22 ? * 2,4,6",  //每周1，3，5 晚上22:00触发
    var jobDescription: String = "",
    var jobName: String = "",
    var paras: ScheduledTaskParas = ScheduledTaskParas()
)

data class ScheduledTaskParas(
    var days: Any? = Any(),
    var hours: List<Int> = listOf(),
    var minutes: List<Int> = listOf(),
    var weeks: List<Int> = listOf()
)
